package com.ruoyi.tongban.domain.face;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Description 下发人员信息到设备的实体类
 * @Author caiyanshan
 * @Date 2021/4/7 8:34
 * @Param
 * @Return
 */
public class PersonData extends Message {
  
  private PersionList data;
  
  public PersionList getData() {
    return data;
  }
  
  public void setData(PersionList data) {
    this.data = data;
  }
  
  public static class PersionList{
    private List<Person> personList;
  
    public List<Person> getPersonList() {
      return personList;
    }
  
    public void setPersonList(Person person) {
      if(personList == null){
        this.personList = new ArrayList<Person>();
      }
      this.personList.add(person);
    }
  }
  
  public static class Person{
    private String personId;//必填
    private String name;//必填
    private String sex;
    private String idNo;
    private String phone;
    private String icCard;
    private String faceImg;//必填
    private Long effectTime;
    private Long validTime;//-1永久有效
    private Map<String, String> timeInterval;
  
    public Map<String, String> getTimeInterval() {
      return timeInterval;
    }
  
    public void setTimeInterval(Map<String, String> timeInterval) {
      this.timeInterval = timeInterval;
    }
  
    public String getPersonId() {
      return personId;
    }
  
    public void setPersonId(String personId) {
      this.personId = personId;
    }
  
    public String getName() {
      return name;
    }
  
    public void setName(String name) {
      this.name = name;
    }
  
    public String getSex() {
      return sex;
    }
  
    public void setSex(String sex) {
      this.sex = sex;
    }
  
    public String getIdNo() {
      return idNo;
    }
  
    public void setIdNo(String idNo) {
      this.idNo = idNo;
    }
  
    public String getPhone() {
      return phone;
    }
  
    public void setPhone(String phone) {
      this.phone = phone;
    }
  
    public String getIcCard() {
      return icCard;
    }
  
    public void setIcCard(String icCard) {
      this.icCard = icCard;
    }
  
    public String getFaceImg() {
      return faceImg;
    }
  
    public void setFaceImg(String faceImg) {
      this.faceImg = faceImg;
    }
  
    public Long getEffectTime() {
      return effectTime;
    }
  
    public void setEffectTime(Long effectTime) {
      this.effectTime = effectTime;
    }
  
    public Long getValidTime() {
      return validTime;
    }
  
    public void setValidTime(Long validTime) {
      this.validTime = validTime;
    }
  }
  
  
}
